package com.qf.flower_service.entity;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import javax.persistence.Id;
import javax.persistence.Table;

@Table
@Data
@Document(indexName = "flowers")
public class Flowers {
    @Id
    @org.springframework.data.annotation.Id
    @Field(type = FieldType.Text)
    private Long flowerId;
    private String flowerName;
    private String materials;
    private String packaging;
    private String flowerAnguage;
    private Double price;
    private String pic1;
    private String pic2;
    private String pic3;
    private Long flowerState;
    private String subarea;


}
